package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.THeal2Mapper;
import com.ruoyi.system.domain.THeal2;
import com.ruoyi.system.service.ITHeal2Service;

/**
 * heal2Service业务层处理
 * 
 * @author SJQ
 * @date 2024-10-30
 */
@Service
public class THeal2ServiceImpl implements ITHeal2Service 
{
    @Autowired
    private THeal2Mapper tHeal2Mapper;

    /**
     * 查询heal2
     * 
     * @param id heal2主键
     * @return heal2
     */
    @Override
    public THeal2 selectTHeal2ById(Long id)
    {
        return tHeal2Mapper.selectTHeal2ById(id);
    }

    /**
     * 查询heal2列表
     * 
     * @param tHeal2 heal2
     * @return heal2
     */
    @Override
    public List<THeal2> selectTHeal2List(THeal2 tHeal2)
    {
        return tHeal2Mapper.selectTHeal2List(tHeal2);
    }

    /**
     * 新增heal2
     * 
     * @param tHeal2 heal2
     * @return 结果
     */
    @Override
    public int insertTHeal2(THeal2 tHeal2)
    {
        return tHeal2Mapper.insertTHeal2(tHeal2);
    }

    /**
     * 修改heal2
     * 
     * @param tHeal2 heal2
     * @return 结果
     */
    @Override
    public int updateTHeal2(THeal2 tHeal2)
    {
        return tHeal2Mapper.updateTHeal2(tHeal2);
    }

    /**
     * 批量删除heal2
     * 
     * @param ids 需要删除的heal2主键
     * @return 结果
     */
    @Override
    public int deleteTHeal2ByIds(Long[] ids)
    {
        return tHeal2Mapper.deleteTHeal2ByIds(ids);
    }

    /**
     * 删除heal2信息
     * 
     * @param id heal2主键
     * @return 结果
     */
    @Override
    public int deleteTHeal2ById(Long id)
    {
        return tHeal2Mapper.deleteTHeal2ById(id);
    }
}
